升级固件的方法、电子设备和存储介质
Published in 发明专利 Invention patent, 2024
Recommended citation: Dayao Ji. (2024). "Method for upgrading firmware, electronic device and storage medium." China patent. CN117608627A. https://patents.google.com/patent/CN117608627A
升级固件的方法、电子设备和存储介质
摘要:本发明公开了升级固件的方法、电子设备和存储介质。该方法包括:获取固件升级包,所述固件升级包包括升级模式固件的完整镜像文件以及所述升级模式固件的依赖固件列表中的各依赖固件的完整固件镜像文件;读取所述固件升级包中的所述升级模式固件的完整镜像文件,并将读取的所述升级模式固件的完整镜像文件写入到与设备分区表中设置的升级模式暂存分区相对应的块设备节点中;对所述升级模式固件的依赖固件列表中的各依赖固件以及所述升级模式固件进行升级;以及将当前升级的所述固件升级包拷贝到所述设备分区表中设置的固件修复分区的预设路径,以覆盖所述固件修复分区的预设路径下的固件升级完整包。本发明能够提高升级的可靠性。
Method for upgrading firmware, electronic device and storage medium
Abstract:The invention discloses a method for upgrading firmware, electronic equipment and a storage medium. The method comprises the following steps: acquiring a firmware upgrade package, wherein the firmware upgrade package comprises a complete image file of upgrade mode firmware and complete firmware image files of all dependent firmware in a dependent firmware list of the upgrade mode firmware; reading a complete image file of the upgrade mode firmware in the firmware upgrade package, and writing the read complete image file of the upgrade mode firmware into a block device node corresponding to an upgrade mode temporary storage partition set in a device partition table; upgrading each dependent firmware in the dependent firmware list of the upgrade mode firmware; copying the firmware upgrade package which is currently upgraded to a preset path of a firmware repair partition which is set in the equipment partition table so as to cover a firmware upgrade complete package under the preset path of the firmware repair partition. The invention can improve the upgrading reliability.
Recommended citation:
纪大峣. 升级固件的方法、电子设备和存储介质[P]. 中国:CN117608627A,2024-02-27.
D. Ji,”Method for upgrading firmware, electronic device and storage medium,” China Patent CN117608627A, February 27,2024.
